package org.codeart.flyweight.demo1;

/**
 * 非共享的具体享元类
 */
public class UnsharedFlyweight extends FlyWeight {
    
    private final String inside;

    public UnsharedFlyweight(String inside) {
        this.inside = inside;
    }

    @Override
    public void operate(String state) {
        System.out.println("使用不共享状态, 内部状态: " + inside + ", 外部状态: " + state);
    }
}
